﻿using Rhino.DocObjects;
using Rhino.Geometry;
using Rhino.Input.Custom;

namespace AiMoRhino.ScriptInstance.CustomGetter
{
    class GetCircleObject : GetObject
    {
        public override bool CustomGeometryFilter(RhinoObject rhObject, GeometryBase geometry, ComponentIndex componentIndex)
        {
            return geometry.ObjectType == ObjectType.Curve && geometry is Curve crv && crv.TryGetCircle(out _);
        }
    }
}
